<h1>New ingredient</h1>
<table>
<% form_for(@ingredient) do |f| %>
  <%= f.error_messages %>

 <tr>
   <th><%= f.label :recipe_id %></th>
   <th><%= f.label :name %></th>
   <th><%= f.label :amount %></th>
   <th><%= f.label :amount_unit %></th>
   <th><%= f.label :notes %></th>
 </tr>
 <tr>
   <td><%= f.text_field :recipe_id, :size=>5 %></td>
   <td><%= f.text_field :name, :size=>25 %></td>
   <td><%= f.text_field :amount, :size=>5 %></td>
   <td><%= f.text_field :amount_unit, :size=>25 %></td>
   <td><%= f.text_field :notes, :size=>25 %></td>
 </tr>



</table>

  <p>
    <%= f.submit "Create" %>
<% end %>
<%= link_to 'Back', ingredients_path %>
  </p>